package com.vision.sales.cm.serv.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.vision.core.cm.serv.rpc.AbstractServiceAsync;
import com.vision.sales.cm.db.data.AppliedAdvancePayment;

/**
 * 
 * @author Mark
 *
 */
public interface AppliedAdvancePaymentServiceAsync extends AbstractServiceAsync<AppliedAdvancePayment> {
	
	void getAppliedAdvancePaymentsForCustomer(long customerId, AsyncCallback<List<AppliedAdvancePayment>> callback);
	
	void getAppliedAdvancePaymentsForAdvancePayment(long advancePaymentId, AsyncCallback<List<AppliedAdvancePayment>> callback);
	
	void postAppliedAdvancePayments(List<AppliedAdvancePayment> payments, AsyncCallback<List<AppliedAdvancePayment>> callback);

	void delete(List<AppliedAdvancePayment> appliedAdvancePayments, AsyncCallback<List<AppliedAdvancePayment>> callback);
	
}
